<p class="title">
	Użytkownicy 
	<a href="<?php echo $this->url(array('controller'=>'account','action'=>'add', 'module'=>'admin'));?>">
		<input type="button" name="button" value="Dodaj nowego" />
	</a> 
</p><!-- title -->

<form method="get" class="sorround-table">
	<div class="top-under-table">
			<ul>
				<li><select name="massAction">
						<option value="">Masowe działania</option>
						<option>usuń</option>
				</select></li>
				<li><input type="button" name="massAction" value="Zastosuj" /></li>
			</ul>		<!-- #massAction -->
	</div>
	<!-- #top-under-table -->

	<div  class="showAll">
	<table>
		<thead>
			<tr>
				<th class="checkbox"><input type="checkbox" name="userID_all" value="0" />
				<th>Imię i nazwisko</th>
				<th>E-mail</th>
				<th>Rola</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<th class="checkbox"><input type="checkbox" name="userID_all" value="0" />				
				<th>Imię i nazwisko</th>
				<th>E-mail</th>
				<th>Rola</th>
			</tr>
		</tfoot>
		<tbody>
		<?php foreach($this->users as $user) : ?>
			<tr>
				<td class="checkbox"><input type="checkbox" name="userID"
					value="<?php echo $user['id']; ?>" /></td>
				<td><a href="<?php echo $this->url(array('controller'=>'account','action'=>'edit', 'id'=>$user['id'], 'module'=>'admin'));?>">
					<?php echo $user['name'].' '.$user['surname']; ?> </a>
					<p class="sub-menu">
						<a href="<?php echo $this->url(array('controller'=>'account','action'=>'edit', 'id'=>$user['id'], 'module'=>'admin'));?>">
						 	Edytuj 
						 </a>
					  |  <a href="<?php echo $this->url(array('controller'=>'account','action'=>'delete', 'id'=>$user['id'], 'module'=>'admin'));?>" class="delete"> 
					 		Usuń 
					 	 </a>
					</p>
				</td>
				<td><a href="mailto:<?php echo $user['email']; ?>" class="mailto"><?php echo $user['email']; ?>
				</a></td>
				<td><?php echo $user['role_id']; ?></td>
			</tr>
		</tbody>
		<?php endforeach; ?>
	</table>
	</div> <!-- #showAll -->
	
	<div class="top-under-table">
			<ul>
				<li><select name="massAction">
						<option value="">Masowe działania</option>
						<option>usuń</option>
				</select></li>
				<li><input type="button" name="massAction" value="Zastosuj" /></li>
			</ul>		<!-- #massAction -->
	</div>
	<!-- #top-under-table -->
	
</form>


<pre>
<?php //echo print_r($this->users); ?>
</pre>
	
	